package com.teamall.web.fpgz.db.dao.mapper;

import com.teamall.web.fpgz.db.arg.CodeFamilyAndAidstaffByVillageArg;
import com.teamall.web.fpgz.db.po.CodeFamilyAndAidstaffByVillagePO;

import java.math.*;
import java.util.*;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;

public interface ICodeFamilyAndAidstaffByVillageMapper {
    
    List<Integer> countByArg(CodeFamilyAndAidstaffByVillageArg arg);

    List<CodeFamilyAndAidstaffByVillagePO> selectByArg(CodeFamilyAndAidstaffByVillageArg arg);

    CodeFamilyAndAidstaffByVillagePO selectByPrimaryKey(Integer id);

    List<CodeFamilyAndAidstaffByVillagePO> selectByArgAndPage(CodeFamilyAndAidstaffByVillageArg arg, RowBounds rowBound);

    int insert(CodeFamilyAndAidstaffByVillagePO record);

    int insertSelective(CodeFamilyAndAidstaffByVillagePO record);

    int insertBatch(@Param("list") List<CodeFamilyAndAidstaffByVillagePO> records);

    int updateByArgSelective(@Param("record") CodeFamilyAndAidstaffByVillagePO record,
            @Param("arg") CodeFamilyAndAidstaffByVillageArg arg);

    int updateByArg(@Param("record") CodeFamilyAndAidstaffByVillagePO record,
            @Param("arg") CodeFamilyAndAidstaffByVillageArg arg);

    int updateByPrimaryKeySelective(CodeFamilyAndAidstaffByVillagePO record);

    int updateByPrimaryKey(CodeFamilyAndAidstaffByVillagePO record);
    
    int deleteByArg(CodeFamilyAndAidstaffByVillageArg arg);
    
    int deleteByPrimaryKey(Integer id);
    
}